-- GENERATED SPELL FOR [Ironhide] --


function spell0_27715(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(32323,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27715', 2307, 1)
end

function spell1_27715(pUnit, Event) --@Maul,n/a--
pUnit:FullCastSpellOnTarget(34298,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27715', 632, 1)
end

function spell2_27715(pUnit, Event) --@Swipe,n/a--
pUnit:FullCastSpellOnTarget(31279,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27715', 584, 1)
end

function Sorts_27715(pUnit, Event)
local choix_sorts_27715 = math.random(0, 2)
if choix_sorts_27715 == 0 then
pUnit:RegisterEvent('spell0_27715', 1, 1)
end
if choix_sorts_27715 == 1 then
pUnit:RegisterEvent('spell1_27715', 1, 1)
end
if choix_sorts_27715 == 2 then
pUnit:RegisterEvent('spell2_27715', 1, 1)
end
end

function mob27715_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27715', math.random(1500, 3000), 1)
end

function mob27715_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27715_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27715_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27715, 1, 'mob27715_Action')
RegisterUnitEvent(27715, 2, 'mob27715_Leave')
RegisterUnitEvent(27715, 3, 'mob27715_Kill')
RegisterUnitEvent(27715, 4, 'mob27715_Die')
